約 3,965,440 件
https://w.atwiki.jp/nakamura001/pages/289.html
一部を切り出す substring String.substring - JavaScript | MDN https //developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/substring substr String.substr - JavaScript | MDN https //developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/substr トリム(trim) Javascript で trim するには - Enjoi Blog http //blog.enjoitech.jp/article/180 trim()関数はIEは9から対応。 String.trim - JavaScript | MDN https //developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/trim
https://w.atwiki.jp/bdjen/pages/9.html
@wikiにはいくつかの便利なプラグインがあります。 アーカイブ コメント ニュース 人気商品一覧 動画(Youtube) 編集履歴 関連ブログ これ以外のプラグインについては@wikiガイドをご覧ください = http //atwiki.jp/guide/
https://w.atwiki.jp/java_pro/pages/34.html
import java.io.*; public class CountSan { public static void main(String[] args){ for (int i = 3; i = 99; i = i + 3){ System.out.println(i); } } }
https://w.atwiki.jp/kurosuke_se_zi/pages/7.html
JAVAアレコレ 作成予定。 Java7? eclipse NetBeans(JavaFX2) andorid開発 iphoneアプリ開発 Flex JavaVMについて ClassLoaderについて WebLogicサーバについて MessageDigestについて HiveMind tomcat6 S2Junit+LuntBuild+dJunit 今のところそんな感じ。
https://w.atwiki.jp/ce00582/pages/1292.html
import javax.media.j3d.*; import com.sun.j3d.utils.universe.*; import java.awt.*; import javax.swing.*; import com.sun.j3d.utils.geometry.*; public class ex52 { public static void main(String[] args) { ex52 test = new ex52(); } public ex52() { JFrame frame = new JFrame(); frame.setSize(800,800); frame.setTitle("ex52"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel cp = new JPanel(); cp.setLayout(null); frame.add(cp); GraphicsConfiguration g_config = SimpleUniverse.getPreferredConfiguration(); Canvas3D canvas = new Canvas3D(g_config); canvas.setBounds(50,50,550,500); cp.add(canvas); SimpleUniverse universe = new SimpleUniverse(canvas); frame.setVisible(true); BranchGroup group1 = new BranchGroup(); Sphere sphere = new Sphere(0.5f); group1.addChild(sphere); universe.addBranchGraph(group1); } }
https://w.atwiki.jp/nihongodocuments/pages/14.html
Lerning Center The following groups of documents provide useful information for users and developers of xTuple ERP. xTuple ERPのユーザーと開発者に役立つ情報が書かれたドキュメントをグループに分類しています。 xTuple.org-Admin and Setup The Administration and Setup area contains essential information for setting up xTuple ERP, with an emphasis on installing the database and configuring Postgres for Linux, Mac, and Windows. This area also includes information about important Release Updates. 「管理と設定」では、Linux, Mac, Windows各マシンへの、データベースのインストール、Postgresの設定に要点を置き、xTuple ERPをセットアップする基本的な情報が書かれています。 xTuple.org-Demo Videos We offer an extensive list of free demo videos that provide training for xTuple ERP and demonstrations of the latest advanced features of the software. xTuple ERPのトレーニング、および最新の高度な機能をデモンストレーションする無料のデモビデオをご提供します。 xTuple.org-Topics The documents in this section are guides for understanding and using the xTuple ERP application. The contents are divided into sections based on the functional areas of the software, such as accounting, manufacturing and sales. There are also miscellaneous topics, including how to import data from QuickBooks, ad hoc reporting, and more. Read more » この章ではxTuple ERPアプリケーションを理解し、利用するガイドとなるドキュメントを提供します。会計、生産、販売といったソフトウェアの機能ごとに、本章のドキュメントは分割されています。更に、QuickBooksからのデータ移行方法、レポート、その他のトピックスも含まれています。 xTuple.org-Developer Zone Welcome! The Developer Zone is the place to learn about extending xTuple with scripted packages, modifying core source code, and interfacing with third party applications. Read more » Developper Zoneは、スクリプトパッケージによるxTupleの機能拡張、ソースコードの改変、サードパーティアプリケーションなどを学習する場所です。 xTuple.org-Demo Guide This Demo Guide is intended for users of the "Free Hosted Demo" of xTuple ERP Manufacturing Edition. Before you begin, you should apply for a free demo account and download the xTuple client software. Read more » 製造業向けxTuple ERPの"Free Hosted Demo"用デモガイドです。デモの開始前に、無料のデモアカウントの取得、xTupleクライアントをダウンロードする必要があります。 xTuple.org-Product Guides This section contains the official Reference Guide for each numbered release of xTuple ERP, as well as Product Guides for add-ons and xTensions. Read more » この章では、アドオンや拡張といったプロダクトガイドと同様に、xTuple ERPの公式リファレンスガイドを用意しています。 xTuple.org-OpenRPT The Product Guide guide and reference material for OpenRPT, the free report writer included with xTuple ERP and available for free download. Read more » xTuple ERPに含まれており、またフリーにダウンロードできる、レポート作成ソフト「OpenRPT」のユーザーガイドと、機能リファレンスです。 xTuple.org-Translation and Localization The worldwide xTuple community has been hard at work creating translations in more than twenty languages. These can be downloaded directly from our Translation Portal. You can also find instructions for installing and using language files, or join one of the translation teams to contribute to a translation. Read more » 世界的なxTupleコミュニティは、20カ国以上の翻訳機能を作製しました。これは翻訳ポータルからダウンロードできます。ランゲージファイルのインストール方法、使用方法が見つけられます。また、翻訳チームに加わり、貢献することもできます。 xTuple.org-Third-Party Solutions This section includes guides and instructions for using third-party extensions developed for xTuple ERP. The extensions themselves are available for download in the xChange. Read more » この章は、xTuple ERPのサードパーティ拡張機能の開発者向けガイドです。 xTuple.org-Web Integration This section contains documentation for various web-based interfaces for interacting with the xTuple ERP database. Our approach is to create web interfaces where it makes the most sense--we are not replacing the GUI client with a web-based interface, but rather to expose specific functionality to the web, where it would be useful to have additional inputs from customers, partners, etc. Read more » このセクションでは、xTuple ERPのデータベースと対話するための様々なウェブベースのインターフェイスに関するドキュメントが含まれています。我々のアプローチは、それが最も理にかなってどこのWebインターフェースを作成することです - 私たちはWebベースのインタフェースとGUIクライアントを交換されるのではなく、それは顧客からの追加入力を持つことが有用であろう場所、ウェブへの特定の機能を公開する、パートナー、等
https://w.atwiki.jp/ce00582/pages/1259.html
import java.awt.*; import javax.swing.*; public class ex04 extends JFrame { public static void main (String args[]) { new ex04(); } public ex04() { setDefaultCloseOperation(EXIT_ON_CLOSE); getContentPane().add(new MyJPanel()); setSize(500,500); setTitle("練習"); setVisible(true); } class MyJPanel extends JPanel { public MyJPanel(){setBackground(Color.white);} public void paintComponent(Graphics g) { super.paintComponent(g); Font font = new Font("Dialog", Font.PLAIN, 40); g.setFont(font); g.drawString("Well Come to java world !!", 100,100); } } }
https://w.atwiki.jp/aias-jsstyleguide2/pages/17.html
JavaScriptのデータ型 JSDocへのデータ型の記述は、できるだけ具体的かつ正確に行ってください。我々のサポートする型のスタイルはEcmaScript 4 仕様に基づいています。 JavaScriptの型言語 ES4の提案にはJavaScriptのデータ型を定義する言語が含まれていました。この言語をJSDoc内で用い、関数パラメータや戻り値の型を表現します。 ES4提案の進展に伴い、その型言語も変化しています。Compilerは古い構文もサポートしていますが、現在それらは非推奨となっています。 構文名 構文 説明 非推奨の構文 Primitive Type JavaScriptに含まれる5種類のプリミティブ型 {null}, {undefined}, {boolean}, {number}, {string} シンプルな型名称 Instance Type {Object}Objectのインスタンスもしくはnull{Function}Functonのインスタンスもしくはnull{EventTarget}EventTargetインタフェースを実装するコンストラクタのインスタンスもしくはnull コンストラクタまたはインタフェースのインスタンスであることを表します。コンストラクタ関数は@cpnstructorJSDocタグによって定義されます。インタフェース関数は@interfaceJSDocタグによって定義されます。デフォルトで、Instance Typeはnullを許可します。このタイプはnullを許す唯一のものです。この表に含まれる他の構文はデフォルトでnullを許可しません。 Enum Type {goog.events.EventType}goog.events.EventTypeの列挙値で初期化されたオブジェクトリテラルのプロパティのどれか 列挙型の変数はオブジェクトリテラルもしくは他の列挙型変数の別名で、@enumJSDocタグがアノテートされていなければなりません。このオブジェクトリテラルのプロパティが、列挙値の実体となります。列挙型の構文についてはこちらで定義されています。注意:この型は、我々の型システムのうちES4仕様に含まれない数少ないもののひとつです。 Type Application {Array. string }文字列の配列{Object. string, number }キーが文字列、値が数値のオブジェクト 型引数のセットを付記し、型をパラメータ化します。考え方はJavaのジェネリクスによく似ています。 Type Union {(number|boolean)}数値または論理値 値の型がAまたはBであることを表します。この型が最上位の式で使われる場合、丸括弧は省略しても構いません。しかしそうでない場合は、曖昧さを避けるために丸括弧を付けてください。{number|boolean}{function() (number|boolean)} {(number,boolean)}, {(number||boolean)} Nullable Type {?number}数値またはNULL。 Unionの省略形で、何らかの型もしくはnullであることを表します。この型は糖衣構文です。 {number?} Non-nullable Type {!Object}Object型ですが、nullは許されません。 この型がnullを許容しないことを表します。殆どの場合、デフォルトでnullを許すInstance Typeに対して使用されます。 {Object!} Record Type {{myNum number, myObject}}型指定されたメンバを持つ無名オブジェクト 値が指定された型のメンバを持つオブジェクトであることを表します。左のケースでは、myNumは数値、myObjectはどの型でも取れるプロパティです。波括弧は構文の一部であることに注意してください。例えばArrayがlengthというプロパティを持つオブジェクトの配列であることを示すには、Array. {length} のように書きます。 Function Type {function(string, boolean)}2つの引数(文字列と論理値)を取り、戻り値が指定されていない関数。 関数を定義します。 Function Return Type {function() number}引数を取らず、数値を戻り値として返す関数。 関数の戻り値の型を定義します。 Function this Type {function(this goog.ui.Menu, string)}文字列の引数1つをとり、goog.ui.Menuのコンテキストで実行される関数。 関数のコンテキストの型を定義します。 Function new Type {function(new goog.ui.Menu, string)}文字列の引数を1つ取るコンストラクタ関数。 new キーワードと共にコールされるときにはgoog.ui.Menuのインスタンスを生成します。 コンストラクタによって作成される型を定義します。 Variable arguments {function(string, ...[number]) number}引数として文字列を1つと、可変個数の数値を取る関数。 関数に個数の変化する引数を定義します。 Variable arguments (in @param annotations) @param {...number} var_args可変個数の引数を取るようアノテートされた関数。 可変個数の引数を受け取れるようアノテートされた関数を定義します。 Function optional arguments {function(?string=, number=)}省略可能な、nullでもよい文字列型の引数と、省略可能な数値型の引数を取る関数。=は関数型の宣言の中でのみ使います。 関数の省略可能な引数を定義します。 Function optional arguments (in @param annotations) @param {number=} opt_argument数値型の省略可能なパラメータ。 省略可能な引数を受け取れるようアノテートされた関数を定義します。 The ALL Type {*} その変数がどのような型でも取れることを表します。 The UNKNOWN Type {?} その変数がどのような型でも取れ、Compilerはそれを使った型チェックを行ってはならないことを表します。 JavaScriptで使えるデータ型 型名の例 値の例 説明 number 11.0-51e5Math.PI Number new Number(true) Numberオブジェクト string Hello "World"String(42) 文字列値 String new String( Hello )new String(42) Stringオブジェクト boolean truefalseBoolean(0) 論理値 Boolean new Boolean(true) Booleanオブジェクト RegExp new RegExp( hello )/world/g Date new Datenew Date() null null undefined undefined void function f() { return;} 戻り値なし Array [ foo , 0.3, null][] 型指定のない配列 Array. number [11, 22, 33] 数値の配列 Array. Array. string [[ one , two , three ], [ foo , bar ]] 文字列の配列の配列 Object {}{foo abc , bar 123, baz null} Object. string { foo bar } 文字列の値を持つオブジェクト Object. number, string var obj = {};obj[1] = bar ; キーが数値で値が文字列のオブジェクト。JavaScriptではオブジェクトのキーは暗黙的に文字列に変換される点に注意してください。従ってobj[ 1 ] == obj[1]です。また for...in ループの中でもキーは常に文字列です。しかしCompilerはオブジェクトのキーをインデックス化する際、その型を識別します。 Function function(x, y) { return x * y;} Functionオブジェクト function(number, number) number function(x, y) { return x * y;} 関数 SomeClass /** @constructor */function SomeClass() {}new SomeClass(); SomeInterface /** @interface */function SomeInterface() {}SomeInterface.prototype.draw = function() {}; project.MyClass /** @constructor */project.MyClass = function () {}new project.MyClass() project.MyEnum /** @enum {string} */project.MyEnum = { /** 青色 */ BLUE #0000dd , /** 赤色 */ RED #dd0000 }; 列挙型列挙値に対するJSDocコメントは省略可能です。 Element document.createElement( div ) DOM要素 Node document.body.firstChild DOMノード HTMLInputElement htmlDocument.getElementsByTagName( input )[0] DOM要素の型を明示的に指定します。 型キャスト ある式のデータ型を型チェック機能が正確に推測できないケースでは、型キャストコメントを利用できます。型キャストコメントには@typeアノテーションでデータ型を示し、式は丸括弧で括ります。丸括弧は必須です。 /** @type {number} */ (x) そのパラメータ・プロパティは「Nullを許す」のか「省略できる」のか JavaScriptは型に厳格でない言語なので、関数パラメータやクラスプロパティにおける「nullを許す」、「省略できる」、「undefined」の微妙な違いを理解しておくことは非常に重要です。 クラスとインタフェースのインスタンスはデフォルトでnullを許します。例として、以下の宣言をみてください /** * 何かのクラス、何らかの値で初期化されます。 * @param {Object} value 何かの値。 * @constructor */ function MyClass(value) { /** * 何かの値。 * @type {Object} * @private */ this.myValue_ = value; } 上のコードはCompilerに対し、myValue_プロパティが値として持つのはオブジェクトかnullのどちらかだと伝えています。もし myValue_プロパティが決してnullとならないのなら、こう宣言されるべきです /** * 何かのクラス、nullでない何らかの値で初期化されます。 * @param {!Object} value 何かの値。 * @constructor */ function MyClass(value) { /** * 何かの値。 * @type {!Object} * @private */ this.myValue_ = value; } この場合、もしコードのどこかでMyClassがnull値で初期化されていることをCompilerが検出すると、Compilerから警告が発せられます。 省略されたパラメータはおそらくランタイムによってundefinedとして扱われます。それらがオブジェクトのプロパティに代入されるのであれば、プロパティもまたそれに応じて適切に宣言されていなければなりません /** * 何かのクラス、省略可能な何らかの値で初期化されます。 * @param {Object=} opt_value 何かの値(省略可)。 * @constructor */ function MyClass(value) { /** * 何かの値。 * @type {Object|undefined} * @private */ this.myValue_ = value; } 上のコードはCompilerに対し、myValue_の値はオブジェクトかnull、あるいはundefinedのままであると伝えています。 省略可能なパラメータopt_valueの型が{Object=}と宣言されており、{Object|undefined}ではないことに注意してください。それは、省略可能なパラメータが undefined でありうることが定義上明らかだからです。そのことを明示的に宣言しても不都合はありませんが、本来必要ないだけでなく、コードも読みにくくなってしまいます。 最後に、nullを許すことと省略可能であることは直交的な性質である点に注意してください。以下の4つの宣言は全て異なった意味を持っています /** * 4つの引数を取ります。そのうち2つはnullを許容し、2つは省略可能です。 * @param {!Object} nonNull 必須(undefinedは不可)、nullは不可。 * @param {Object} mayBeNull 必須(undefinedは不可)、nullでもよい。 * @param {!Object=} opt_nonNull 省略可 (undefinedでもよい)、しかし値があるなら、 * それはnullであってはならない! * @param {Object=} opt_mayBeNull 省略可 (undefinedでもよい)、nullでもよい。 */ function strangeButTrue(nonNull, mayBeNull, opt_nonNull, opt_mayBeNull) { // ... }; 型定義 時々、型の指定が複雑になってしまうことがあります。例えば、DOM要素のコンテンツを受け取る関数があるとしましょう /** * @param {string} tagName * @param {(string|Element|Text|Array. Element |Array. Text )} contents * @return {Element} */ goog.createElement = function(tagName, contents) { ... }; @typedefタグを使うと、よく使われるデータ型の組み合わせを1つの型として定義することができます。例えばこうです /** @typedef {(string|Element|Text|Array. Element |Array. Text )} */ goog.ElementContent; /** * @param {string} tagName * @param {goog.ElementContent} contents * @return {Element} */ goog.createElement = function(tagName, contents) { ... }; テンプレート型 Compilerが行うテンプレート型のサポートは限定的です。それは関数リテラル内のthisの型を、thisを指定する引数の型と値の有無から推測するだけです。 /** * @param {function(this T, ...)} fn * @param {T} thisObj * @param {...*} var_args * @template T */ goog.bind = function(fn, thisObj, var_args) { ... }; // おそらくプロパティが存在しないという警告が出力されます。 goog.bind(function() { this.someProperty; }, new SomeClass()); // thisがundefinedであるという警告が出力されます。 goog.bind(function() { this.someProperty; }); 列挙型 訳注:2.28版以降列挙型に関する以下の説明は削除されていますが、コーディングルールの理解には必要と考え記載します。 /** * 3つの状態を値にもつ列挙型。 * @enum {number} */ project.TriState = { TRUE 1, FALSE -1, MAYBE 0 }; 列挙型は有効なデータ型の1つである点に注意して下さい。列挙型はパラメータの型指定などに使用できます。 /** * プロジェクトの状態を設定します。 * @param {project.TriState} state 新しいプロジェクトの状態 */ project.setState = function(state) { // ... };
https://w.atwiki.jp/fieds_labo3/pages/47.html
JAVADB フィールド フィールドの属性キー 索引 null 一意 列名 :使用不可(no, データ型 サイズ 位取り コメント デフォルト値 検査 制約の検査 データ型 サイズ 備考 NUMERIC 可変 DECIMALの別名 VARCHAR FOR BIT DATA 可変 最大32,672byte、画像などのバイナリ文字列 CLOB 2GB 最大2,147,483,647の文字長、長さはユニコードの文字数(要注意) VARCHAR 可変 最大長32,672文字 TIME hh mm[ ss]、hh.mm[.ss]、hh[ mm]{AM or PM}、最小00 00 00~最大24 00 00 CHAR FOR BIT DATA 可変 既定1byte、最大254byte、固定長0x20埋め REAL 4byte 浮動小数点数 DATE yyyy-mm-dd、mm/dd/yyyy、dd.mm.yyyy、最小0001-01-01~最大9999-12-31 CHAR 可変 既定1byte、最大長はInteger.MAX_VALUE、短い時空白埋め、長い時空白切捨て LONG VARCHAR 可変 最大32,700文字、最大長未指定 DECIMAL 可変 精度数 SMALLINT 2byte 整数-32768(Short.MIN_VALUE)~32767(Short.MAX_VALUE) BLOB 2GB 最大長2,147,483,647文字の可変長バイナリ列 DOUBLE 8byte 浮動小数点数 BIGINT 8byte 整数-9223372036854775808(Long.MIN_VALUE)~9223372036854775807(Long.MAX_VALUE) INTEGER 4byte 整数 TIMESTAMP yyyy-mm-dd hh mm ss[.nnnnnn]、yyyy-mm-dd-hh.mm.ss[.nnnnnn] booleanは次バージョンでサポート予定 Derbyから持ってきたので違ってるかも^^;浮動小数点数:REAL、DOUBLE PRECISION、FLOAT(DP、REALの別名) CHARとVARCHARのサイズは文字数。バイト数では無い。(文字コードに寄らない。内部的にはUTF16と思われる。) CHARは空白埋めされるので、固定長文字列。
https://w.atwiki.jp/neetsdkasu/pages/11.html
Javaに関するメモ 仮想マシンやクラスファイル キーワード 標準入力 仮想マシンやクラスファイル Javaクラスファイル - Wikipedia http //ja.wikipedia.org/wiki/Java%E3%82%AF%E3%83%A9%E3%82%B9%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB Java仮想マシン - Wikipedia http //ja.wikipedia.org/wiki/Java%E4%BB%AE%E6%83%B3%E3%83%9E%E3%82%B7%E3%83%B3 HelloWorldで学ぶJavaのクラスファイル - きどたかのブログ http //kidotaka.hatenablog.com/entry/2012/11/04/082750 Java SE Specifications http //docs.oracle.com/javase/specs/ 第4回 実機に載せよう(ダウンサイズ) クラスファイルを覗こう ソフィア・クレイドル http //www.s-cradle.com/developer/java/javaprogramming4-2.html キーワード 制御構造: if else 制御構造: switch case default break 制御構造: for continue break 制御構造: try catch finally throw 制御構造: return throws throw 型: void int char byte long double float boolean 定数: true false null 修飾子: public protected private static abstract final その他: class interface extends implements import package new 標準入力 Scannerクラスの利用 (内部で正規表現を使ってるらしい) //インポートimport java.util.Scanner;//使い方Scanner in = new Scanner(System.in); String s = in.next(); // 1単語読み込みint a = in.nextInt(); // 数値(1単語)読み込み // in.close(); // System.in は close() はいらない Readerクラスの利用 (例外対応が面倒) //インポートimport java.io.BufferedReader;import java.io.InputStreamReader;import java.io.IOException;//使い方BufferedReader in = null; try { in = new BufferedReader(new InputStreamReader(System.in)); String s = in.readLine(); //1行読み込み、例外への対応が必要} catch (IOException ex) { ex.printStackTrace();// } finally {// if (in != null) { // ※ System.in は close() は必要ない// try {// in.close(); //クローズでも例外の対応が必要// } catch (IOException ex) {// ex.printStackTrace();// } // }} Jarの作り方 Java